Skip to content

Any folder in docs#431

Draft
a-zw wants to merge 4 commits intoeclipse-score:mainfrom
etas-contrib:any_folder_in_docs
Draft

Any folder in docs#431
a-zw wants to merge 4 commits intoeclipse-score:mainfrom
etas-contrib:any_folder_in_docs

Conversation

@a-zw
Copy link
Contributor

@a-zw a-zw commented Mar 3, 2026

📌 Description

A proposal for a mechanism how to include other directories of the repo into documentation.

🚨 Impact Analysis

  • This change does not violate any tool requirements and is covered by existing tool requirements
  • This change does not violate any design decisions
  • Otherwise I have created a ticket for new tool qualification

✅ Checklist

  • Added/updated documentation for new or changed features
  • Added/updated tests to cover the changes
  • Followed project coding standards and guidelines

@github-actions
Copy link

github-actions bot commented Mar 3, 2026

License Check Results

🚀 The license check job ran with the Bazel command:

bazel run //src:license-check

Status: ⚠️ Needs Review

Click to expand output
[License Check Output]
Extracting Bazel installation...
Starting local Bazel server (8.3.0) and connecting to it...
INFO: Invocation ID: 173cd95e-6a8d-46f2-8133-1a226753e0f6
Computing main repo mapping: 
Computing main repo mapping: 
Computing main repo mapping: 
Computing main repo mapping: 
Computing main repo mapping: 
Loading: 
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
    currently loading: src
Loading: 0 packages loaded
    currently loading: src
Loading: 0 packages loaded
    currently loading: src
Analyzing: target //src:license-check (1 packages loaded, 0 targets configured)
Analyzing: target //src:license-check (1 packages loaded, 0 targets configured)

Analyzing: target //src:license-check (67 packages loaded, 9 targets configured)

Analyzing: target //src:license-check (68 packages loaded, 9 targets configured)

Analyzing: target //src:license-check (76 packages loaded, 9 targets configured)

Analyzing: target //src:license-check (128 packages loaded, 1475 targets configured)

Analyzing: target //src:license-check (132 packages loaded, 2516 targets configured)

Analyzing: target //src:license-check (140 packages loaded, 2576 targets configured)

Analyzing: target //src:license-check (140 packages loaded, 2576 targets configured)

Analyzing: target //src:license-check (140 packages loaded, 2576 targets configured)

Analyzing: target //src:license-check (140 packages loaded, 2576 targets configured)

Analyzing: target //src:license-check (144 packages loaded, 4589 targets configured)

INFO: Analyzed target //src:license-check (145 packages loaded, 4715 targets configured).
[9 / 16] Creating runfiles tree bazel-out/k8-opt-exec-ST-d57f47055a04/bin/external/score_tooling+/dash/tool/formatters/dash_format_converter.runfiles [for tool]; 0s local
[13 / 16] JavaToolchainCompileClasses external/rules_java+/toolchains/platformclasspath_classes; 0s disk-cache, processwrapper-sandbox
[14 / 16] JavaToolchainCompileBootClasspath external/rules_java+/toolchains/platformclasspath.jar; 0s disk-cache, processwrapper-sandbox
INFO: Found 1 target...
Target //src:license.check.license_check up-to-date:
  bazel-bin/src/license.check.license_check
  bazel-bin/src/license.check.license_check.jar
INFO: Elapsed time: 26.296s, Critical Path: 2.59s
INFO: 16 processes: 12 internal, 3 processwrapper-sandbox, 1 worker.
INFO: Build completed successfully, 16 total actions
INFO: Running command line: bazel-bin/src/license.check.license_check src/formatted.txt <args omitted>
usage: org.eclipse.dash.licenses.cli.Main [-batch <int>] [-cd <url>]
       [-confidence <int>] [-ef <url>] [-excludeSources <sources>] [-help] [-lic
       <url>] [-project <shortname>] [-repo <url>] [-review] [-summary <file>]
       [-timeout <seconds>] [-token <token>]

@github-actions
Copy link

github-actions bot commented Mar 3, 2026

The created documentation from the pull request is available at: docu-html

@PiotrKorkus
Copy link
Contributor

Hello @a-zw,
thank you for that change that would be very helpful in reference_integration.

In my case the files I want to create a link to are generated during testing. In /docs static .rst files I would like to have a link to them. If testing was executed before and artifacts are in defined place the links should work. Otherwise I would expect docs build to be successful but the links to be broken.

Do you think it could work like this or some redesign is needed (around my idea or the tool itself)?

Copy link
Contributor

@paulquiring paulquiring left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A needed addition to existing functionality.

@@ -0,0 +1,29 @@
Use Any Folder for Documentation
=============================================
Copy link
Contributor

@paulquiring paulquiring Mar 4, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reduce to fit the headline

.. grid-item-card::

Any Folder
^^^
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Enlarge to fit the headline

Only relative links are allowed.

The symlinks will show up in your sources.
**Don't commit the symlinks to git!**
Copy link
Contributor

@paulquiring paulquiring Mar 4, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it be possible to crate the symlinks with a special pattern e.g.
docs/slt/component/containers/ // slt = symlink to
docs/slt/* could be added to the gitignore file.

I'm pretty sure that otherwise this would often be done incorrectly. One advantage for “free” is that it's clear which parts are outside the docs folder.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

conf.py is Python code and all kinds of shenanigans are possible. Is there a benefit to do this within the extension?

@a-zw
Copy link
Contributor Author

a-zw commented Mar 4, 2026

Hello @a-zw, thank you for that change that would be very helpful in reference_integration.

In my case the files I want to create a link to are generated during testing. In /docs static .rst files I would like to have a link to them. If testing was executed before and artifacts are in defined place the links should work. Otherwise I would expect docs build to be successful but the links to be broken.

Do you think it could work like this or some redesign is needed (around my idea or the tool itself)?

This approach is not suitable to include Bazel build artifacts/dependencies. That would be the next logical step to me though, because then we could stop using sphinx-collections in the docs-combo build.

@PiotrKorkus Are these test results integrated build artifacts though? Alternatively, are they "sources" committed to git? Or is it just temporary artifacts creating in some GH workflows?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Draft

Development

Successfully merging this pull request may close these issues.

3 participants